home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 7 / Amiga Format AFCD07 (Dec 1996, Issue 91).iso / serious / shareware / programming / aros / dos / ioerr.c < prev    next >
C/C++ Source or Header  |  1996-09-12  |  1KB  |  64 lines

  1. /*
  2.     (C) 1995-96 AROS - The Amiga Replacement OS
  3.     $Id: ioerr.c,v 1.3 1996/08/13 13:52:47 digulla Exp $
  4.     $Log: ioerr.c,v $
  5.     Revision 1.3  1996/08/13 13:52:47  digulla
  6.     Replaced <dos/dosextens.h> by "dos_intern.h" or added "dos_intern.h"
  7.     Replaced __AROS_LA by __AROS_LHA
  8.  
  9.     Revision 1.2  1996/08/01 17:40:52  digulla
  10.     Added standard header for all files
  11.  
  12.     Desc:
  13.     Lang: english
  14. */
  15. #include <clib/exec_protos.h>
  16. #include "dos_intern.h"
  17.  
  18. /*****************************************************************************
  19.  
  20.     NAME */
  21.     #include <clib/dos_protos.h>
  22.  
  23.     __AROS_LH0(LONG, IoErr,
  24.  
  25. /*  SYNOPSIS */
  26.  
  27. /*  LOCATION */
  28.     struct DosLibrary *, DOSBase, 22, Dos)
  29.  
  30. /*  FUNCTION
  31.     Get the dos error code for the current process.
  32.  
  33.     INPUTS
  34.  
  35.     RESULT
  36.     Error code.
  37.  
  38.     NOTES
  39.  
  40.     EXAMPLE
  41.  
  42.     BUGS
  43.  
  44.     SEE ALSO
  45.  
  46.     INTERNALS
  47.  
  48.     HISTORY
  49.     29-10-95    digulla automatically created from
  50.                 dos_lib.fd and clib/dos_protos.h
  51.  
  52. *****************************************************************************/
  53. {
  54.     __AROS_FUNC_INIT
  55.     __AROS_BASE_EXT_DECL(struct DosLibrary *,DOSBase)
  56.  
  57.     /* Get pointer to process structure */
  58.     struct Process *me=(struct Process *)FindTask(NULL);
  59.  
  60.     /* Nothing spectacular */
  61.     return me->pr_Result2;
  62.     __AROS_FUNC_EXIT
  63. } /* IoErr */
  64.